import request from "@/utils/request";

export function doUpload(data) {
  return request({
    url: "/api/v1/tools/oss/upload",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data,
  });
}

export function getJson(url) {
  // ajax({
  //   url: baseURL + params.url,
  //   method: params.method,
  //   async: false,
  //   data: params.params,
  //   success: function (res) {
  //     ret = JSON.parse(res);
  //   },
  // });
  return request({
    url: url,
    method: "get",
  });
}
